import request from "@/utils/request";

/**
 * 车辆信息查询
 * @param data
 * @returns {*}
 */
export function list(data) {
  return request({
    url: '/system/veh/list',
    method: 'post',
    data: data
  })
}

/**
 * 批量删除
 * @param data
 * @returns {AxiosPromise<AxiosResponse<any>>}
 */
export function del(vehicleInformationId) {
  return request({
    url: '/system/veh/del/'+ vehicleInformationId,
    method: 'post',
    params: vehicleInformationId,
  })
}

/**
 * 回显车辆信息
 * @param data
 * @returns {AxiosPromise<AxiosResponse<any>>}
 */
export function echo(vehicleInformationId) {
  return request({
    url: '/system/veh/echo/'+ vehicleInformationId,
    method: 'get',
    params: vehicleInformationId,
  })
}


/**
 * 添加
 * @param data
 * @returns {*}
 */
export function add(data) {
  return request({
    url: '/system/veh/add',
    method: 'post',
    data: data
  })
}
